import request from '@/utils/request'

// 查询学习成绩列表
export function listSchoolrecord(query) {
  return request({
    url: '/gxs/schoolrecord/list',
    method: 'get',
    params: query
  })
}

// 查询学习成绩详细
export function getSchoolrecord(gxsId) {
  return request({
    url: '/gxs/schoolrecord/' + gxsId,
    method: 'get'
  })
}

// 新增学习成绩
export function addSchoolrecord(data) {
  return request({
    url: '/gxs/schoolrecord',
    method: 'post',
    data: data
  })
}

// 修改学习成绩
export function updateSchoolrecord(data) {
  return request({
    url: '/gxs/schoolrecord',
    method: 'put',
    data: data
  })
}

// 删除学习成绩
export function delSchoolrecord(gxsId) {
  return request({
    url: '/gxs/schoolrecord/' + gxsId,
    method: 'delete'
  })
}


// 我的学习成绩列表
export function MyListSchoolrecord(query) {
  return request({
    url: '/gxs/schoolrecord/MyList',
    method: 'get',
    params: query
  })
}
